package com.cz.ssyx.acl.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cz.ssyx.model.acl.Role;
import com.cz.ssyx.vo.acl.RoleQueryVo;

import java.util.List;
import java.util.Map;

public interface RoleService extends IService<Role> {
    //1. 查询角色列表（分页）
    IPage<Role> selectRolePage(Page<Role> rolePage, RoleQueryVo roleQueryVo);

    //2.查询所有角色和该用户的所有角色
    Map<String, Object> getRoleByAdminId(Long adminId);

    //3.为用户分配角色
    void saveAdminRole(Long adminId, List<Long> roleId);

}
